<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" class="main13" component="$UI/system/components/justep/window/window"
  design="device:mobile;" xid="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;top:42px;left:254px;" onModelConstructDone="modelModelConstructDone"> 
    <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="productData" queryAction="queryNase_product" saveAction="saveNase_product" url="/nase/nase_action" tableName="nase_product" idColumn="fID">
   <master xid="default10"></master>
  <column label="ID" name="fID" type="Integer" xid="default21"></column>
  <column label="标题" name="fTitle" type="String" xid="default22"></column>
  <column label="副标题" name="fFtitle" type="String" xid="default23"></column>
  <column label="副内容" name="fCont" type="String" xid="default24"></column>
  <column label="图标" name="fIcon" type="String" xid="default25"></column>
  <column label="详细介绍" name="fText" type="String" xid="default26"></column>
  <column label="产品价格" name="fPrice" type="Integer" xid="default27"></column>
  <column label="产品数量" name="fNumber" type="Integer" xid="default28"></column>
  <column label="新品推荐" name="fNew" type="Integer" xid="default29"></column>
  <column label="销售量" name="fSales" type="Integer" xid="default30"></column>
  <column label="邮费" name="fPostage" type="Integer" xid="default31"></column>
  <column label="图片地址" name="fImgUrl" type="String" xid="default32"></column>
  <column label="链接地址" name="fUrl" type="String" xid="default33"></column>
  <column label="选择" name="fChoose" type="Integer" xid="xid1"></column>
  <column name="fSum" type="Integer" xid="xid3"></column>
  <rule xid="rule1">
   <col name="fSum" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default11">$row.val('fChoose')==1?$row.val('fPrice')* $model.shoppingData.val(&quot;fNumber&quot;):'0'</expr></calculate> </col> </rule></div>
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="shoppingData" queryAction="queryNase_shopping" saveAction="saveNase_shopping" url="/nase/nase_action" tableName="nase_shopping" idColumn="fID"><column label="fID" name="fID" type="Integer" xid="default4"></column>
  <column label="手机号" name="fPhone" type="String" xid="default5"></column>
  <column label="产品ID" name="fProID" type="Integer" xid="default6"></column>
  <column label="购买数量" name="fNumber" type="Integer" xid="default7"></column>
  <column label="购物车" name="fShop" type="String" xid="default8"></column>
  <column label="待点评" name="fComment" type="String" xid="default9"></column>
  <column label="选择" name="fChoose" type="String" xid="xid2"></column></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="calculateData" idColumn="allSum">
   <column label="合计" name="allSum" type="String" xid="xid7"></column>
   
   <data xid="default2">[{&quot;allSum&quot;:&quot;0&quot;,&quot;isBack&quot;:0}]</data>
  <rule xid="rule2">
   <col name="allSum" xid="ruleCol2">
    <calculate xid="calculate2">
     <expr xid="default12">$model.productData.sum('fSum')</expr></calculate> </col> </rule></div></div>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full x-card x-has-iosstatusbar"> 
    <div class="x-panel-top" height="48"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"> 
        <div class="x-titlebar-left"><a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon" label="button" xid="backBtn" icon="icon-chevron-left" onClick="backBtnClick">
   <i xid="i7" class="icon-chevron-left"></i>
   <span xid="span2"></span></a></div>  
        <div class="x-titlebar-title"> 
          <span xid="span1"><![CDATA[购物车]]></span>  
          </div>  
        <div class="x-titlebar-right reverse"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon"
            label="button" xid="delBtn" icon="icon-ios7-trash-outline" onClick="delBtnClick"> 
            <i xid="i4" class="icon-ios7-trash-outline"/>  
            <span xid="span20"/> 
          </a> 
        </div> 
      </div> 
    </div>  
    <div xid="content" class="x-panel-content x-scroll-view x-cards" supportpulldown="true"> 
      <div class="x-scroll" component="$UI/system/components/justep/scrollView/scrollView"
        xid="scrollView" pullUpLabel=" "> 
        <div class="x-content-center x-pull-down container" xid="div8"> 
          <i class="x-pull-down-img glyphicon x-icon-pull-down" xid="i2"/>  
          <span class="x-pull-down-label" xid="span9">下拉刷新...</span>
        </div>  
        <div class="x-scroll-content" xid="div7"> 
          <div component="$UI/system/components/justep/list/list" class="x-list" xid="shoplist" data="shoppingData" disablePullToRefresh="true" disableInfiniteLoad="true" dataItemAlias="shopRow" filter="$model.Phone($row)">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li1"><div component="$UI/system/components/justep/list/list" class="x-list bg-white" data="productData" xid="List" disablePullToRefresh="true" disableInfiniteLoad="true" filter='$row.val("fID") == val("fProID")' bind-click="proClick"> 
                  <ul class="x-list-template x-min-height" xid="listTemplateUl4" componentname="$UI/system/components/justep/list/list#listTemplateUl" id="undefined_listTemplateUl4"> 
                    <li xid="li4" class="x-min-height tb-goodList" componentname="li(html)" id="undefined_li4" style="border-bottom-style:groove;border-bottom-width:1px;border-bottom-color:#C2C2C2;"> 
                      <div component="$UI/system/components/justep/row/row" class="x-row" style="padding-right:0px;padding-left:0px;" xid="pro">
   <div class="x-col x-col-fixed x-col-center" xid="col1" style="width:auto;"><div component="$UI/system/components/justep/button/checkboxPC" class="checkbox" xid="checkbox" onChange="checkboxChange" bind-ref='shopRow.ref("fChoose")' checkedValue="1" uncheckedValue="0"></div></div>
   <div class="x-col x-col-fixed tb-nopadding" xid="col2" style="width:90px;"><img src="" alt="" xid="image1" class="tb-img-good" bind-click="listClick" bind-attr-src='val("fImgUrl")' dir="ltr"></img></div>
   <div class="x-col  tb-nopadding" xid="col3" bind-click="listClick"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row7" style="margin-top:12px;padding:0px 0px 0px 0px;">
   <div class="x-col" xid="col6" style="padding:0px 0px 0px 0px;">
    <h4 xid="h46" class="newh4" bind-text='val("fTitle")'></h4></div> </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row8" style="padding:0px 0px 0px 0px;">
   <div class="x-col" xid="col5" style="padding:0px 0px 0px 0px;">
    <h5 xid="h54" class="newh5" bind-text='val("fFtitle")'></h5></div> </div>
  </div>
  <div class="x-col x-col-25 tb-nopadding" xid="col10" bind-click="listClick"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row3" style="padding-left:0px;">
   <div class="x-col" xid="col12" style="padding-left:0px;padding-bottom:0px;">
  <span xid="span5" class="pull-right" bind-text='val("fPrice") + ".00"' style="color:#FF0000;font-size:16px;"></span><span xid="span4" class="pull-right" style="font-size:10px;margin-top:4px;"><![CDATA[￥]]></span></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row4">
   <div class="x-col" xid="col14">
  <span xid="span7" class="pull-right" bind-text='shopRow.val("fNumber")'></span><span xid="span6" class="pull-right"><![CDATA[X]]></span></div>
   </div></div></div></li> 
                  </ul> 
                </div></li></ul> <div class="x-content-center x-pull-up" xid="div7"> 
          <span class="x-pull-up-label" xid="span8"></span>
        </div></div>
  </div>  
         
      </div>
    </div>  
    <div class="x-panel-bottom" xid="bottom1"> 
      <div component="$UI/system/components/justep/row/row" class="x-row tb-nopadding" xid="row2">
   <div class="x-col x-col-20 x-col-center" xid="col4">
  <div component="$UI/system/components/justep/button/checkboxPC" class="checkbox" xid="allChoose" onChange="allChooseChange" checked="false" label="全选"></div></div>
   <div class="x-col x-col-center" xid="col8"><div class="text-right" xid="div9">
   <span xid="span15" class="text-muted">合计：</span>
   <span xid="span17" class="text-danger">￥</span>
   <span xid="sum" class="h4 text-danger" bind-text="calculateData.ref('allSum')"><![CDATA[0]]></span></div>
  </div>
   <div class="x-col x-col-33 text-center tb-settlement" xid="col9" bind-click="settlementClick"><span xid="span10"><![CDATA[结算]]></span>
  </div></div></div> 
  </div> 
</div>